import request from '@/utils/aRequest'
export default {

  getAllProduct() {
    return request({
      url: `admin/seckill/admin/getNormalProduct`,
      method: 'get',
    })
  },

  getAllSeckillProduct() {
    return request({
      url: `admin/seckill/admin/getSeckillProduct`,
      method: 'get',
    })
  },

    //删除秒杀产品
    delSeckill(id) {
        return request({
          url: `admin/seckill/admin/delSeckillProduct`,
          method: 'get',
          params: {
            "id":id,
          }
        })
      },

      addSeckillProduct(from) {
        return request({
          url: `admin/seckill/admin/addSeckillProduct`,
          method: 'post',
          data: from
        })
      },



      delP(id) {
        return request({
          url: `admin/seckill/admin/delProduct/`+id,
          method: 'delete',
        })
      },
      
      
}